<?php



Interface Yapary_Chart_IChart
{
    public function __construct ( );
    public function setTextX ( $text );
	public function setTextFont ( $color, $size = 3 );
	public function setChartFont ( $color, $thickness = 3 );
	public function setTextY ( $text );
	public function setBgColor ( $color );
	public function setOutputFormat( $format, $quality = 80 );
    public function showPoligon ( );
    public function showPoint ( );
    public function showPointValue ( );
    public function showXAxisValue ( );
    public function showYAxisValue ( );
    public function showGrid ( );
    public function addPoint ( $x, $y, $desc, $color = 0 );

    public function createChart ( $width = 600, $height = 450 );
    public function createBarChart ( $width = 600, $height = 450 );

//    private function getColorByHex ( $img, $color );
//    private function getDynamicColor ( );
//    private function drawChart ( $img, $x, $y, $width, $height );
//    private function drawGrid ( $img, $x, $y, $width, $height );
//    private function drawPoints ( $img, $x, $y, $width, $height );
//    private function drawPointValues ( $img, $x, $y, $width, $height );
//    private function drawPoligon ( $img, $x, $y, $width, $height );
//    private function outputJpeg ( $img, $quality );
//    private function outputGif ( $img );
//    private function outputPng ( $img, $quality );
}


?>